package com.xca.znb.presenter;

import com.xca.znb.entity.User;
import com.xca.znb.model.imodel.IAssets;

public class AssetsPresenter {
    private IAssets iAssets ;
    public AssetsPresenter(IAssets iAssets){
        this.iAssets = iAssets ;
    }

    public void insertAccount(String phone , double num , String type , String time_day , String time_sec){
        iAssets.insertAccount(phone, num, type, time_day, time_sec);
    }
    public double getNum(String phone){
        return iAssets.getNum(phone);
    }

    public User getUserByPhone(String phone){
        return iAssets.getUserByPhone(phone);
    }
}
